<?php

/**
 * 检查异常wiki次数
 */

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\model\wiki\WikiAbnormalLog;

$list = WikiAbnormalLog::selectByWhere(['abnormal_count[>]' => 5], '*');
foreach ($list as $row) {
    //todo 更改wiki表channel_spu_status
}

$list = WikiAbnormalLog::selectByWhere(['abnormal_count' => 0], '*');
foreach ($list as $row) {
    //todo 更改wiki表channel_spu_status
}